<?php /* @var $this Controller */ ?>

<?php
	if(!Yii::app()->user->isGuest) {
		echo Yii::app()->user->name . ' ' . CHtml::link('Выйти', array('/site/logout'));
	} else {
		Yii::app()->eauth->renderWidget();
	}
?>
